const openFullWindowForWfCenterRequest = (url) => {
    const width = screen.availWidth - 10;
    const height = screen.availHeight - 50;
    let szFeatures = "top=0,left=0,";
    szFeatures += "width=" + width + ",";
    szFeatures += "height=" + height + ",";
    szFeatures += "directories=no,status=yes,toolbar=no,location=no,";
    szFeatures += "menubar=no,scrollbars=yes,resizable=yes";
    window.open(url, "", szFeatures);
}
//位置串转成对象
export const getLocationInfoData = (remarkLocation = '') => {
  let locationInfoData = {};
  if (remarkLocation) {
      const locationInfos = remarkLocation.split(',');

      if (locationInfos.length === 4) {
          locationInfoData['longitude'] = locationInfos[1];
          locationInfoData['latitude'] = locationInfos[2];
          locationInfoData['name'] = locationInfos[3];
      }
      if( locationInfos.length === 3) {
        //来自pc端的位置信息
        locationInfoData['longitude'] = locationInfos[0];
        locationInfoData['latitude'] = locationInfos[1];
        locationInfoData['name'] = locationInfos[2];
      }
  }
  return locationInfoData;
}
window.openFullWindowForWfCenterRequest = openFullWindowForWfCenterRequest;